/* 高级科技特效 - 更多视觉效果 */

/* 3D边框效果 */
.border-3d {
  position: relative;
  background: rgba(0, 20, 40, 0.5);
  border: 1px solid rgba(0, 212, 255, 0.5);
  box-shadow: 
    0 0 0 1px rgba(0, 212, 255, 0.2),
    0 0 0 2px rgba(0, 212, 255, 0.1),
    0 0 10px rgba(0, 212, 255, 0.3),
    inset 0 0 5px rgba(0, 212, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

/* 扫描边框效果 */
.scan-border {
  position: relative;
  background: rgba(0, 20, 40, 0.5);
  border: 1px solid rgba(103, 224, 227, 0.3);
  box-shadow: 0 0 20px rgba(103, 224, 227, 0.2);
  border-radius: 10px;
  overflow: hidden;
}

.scan-border::before {
  content: "";
  position: absolute;
  top: -100%;
  left: -100%;
  width: 300%;
  height: 300%;
  background: 
    linear-gradient(0deg, transparent 0%, rgba(103, 224, 227, 0.2) 50%, transparent 100%),
    linear-gradient(90deg, transparent 0%, rgba(103, 224, 227, 0.2) 50%, transparent 100%);
  animation: scan-rotate 10s linear infinite;
  pointer-events: none;
}

@keyframes scan-rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 高科技角边框 */
.tech-corner-border {
  position: relative;
  border: 1px solid rgba(0, 212, 255, 0.3);
  background: rgba(0, 20, 40, 0.5);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
  border-radius: 10px;
  overflow: hidden;
}

.tech-corner-border::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  width: 20px;
  height: 20px;
  border-top: 2px solid rgba(0, 212, 255, 0.8);
  border-left: 2px solid rgba(0, 212, 255, 0.8);
  border-radius: 5px 0 0 0;
}

.tech-corner-border::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 20px;
  height: 20px;
  border-bottom: 2px solid rgba(0, 212, 255, 0.8);
  border-right: 2px solid rgba(0, 212, 255, 0.8);
  border-radius: 0 0 5px 0;
}

/* 呼吸灯效果 */
.breathing-light {
  position: relative;
  background: rgba(0, 20, 40, 0.5);
  border: 1px solid rgba(0, 212, 255, 0.3);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
  border-radius: 10px;
  overflow: hidden;
  animation: breathing 4s ease-in-out infinite;
}

@keyframes breathing {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 212, 255, 0.2); }
  50% { box-shadow: 0 0 30px rgba(0, 212, 255, 0.5); }
}

/* 科技网格效果 */
.tech-grid {
  position: relative;
  overflow: hidden;
}

.tech-grid::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(0, 212, 255, 0.1) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(0, 212, 255, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  background-position: center center;
  opacity: 0.3;
  pointer-events: none;
}

/* 扩散动画效果 */
.ripple-effect {
  position: relative;
  overflow: hidden;
}

.ripple-effect::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(0, 212, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1);
  animation: ripple 5s linear infinite;
}

@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(50);
    opacity: 0;
  }
}

/* 流光效果 */
.flow-light {
  position: relative;
  overflow: hidden;
}

.flow-light::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -100%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  animation: flow-light 8s infinite;
}

@keyframes flow-light {
  0% {
    left: -100%;
  }
  50%, 100% {
    left: 150%;
  }
}

/* 全息角标效果 */
.hologram-corner {
  position: relative;
  overflow: hidden;
}

.hologram-corner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100px;
  height: 100px;
  background: radial-gradient(
    circle at top left,
    rgba(0, 212, 255, 0.2),
    transparent 70%
  );
  pointer-events: none;
}

.hologram-corner::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: radial-gradient(
    circle at bottom right,
    rgba(0, 212, 255, 0.2),
    transparent 70%
  );
  pointer-events: none;
}

/* 科技点阵效果 */
.dot-matrix {
  position: relative;
  overflow: hidden;
}

.dot-matrix::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0, 212, 255, 0.3) 1px, transparent 1px);
  background-size: 10px 10px;
  opacity: 0.3;
  pointer-events: none;
}
